@import "~themes/vars.less";

.root {
  display: flex;
  justify-content: space-between;
  padding: 0 20px 0 0; // height: 50px;
  // line-height: 50px;
  // background-color: #4097c7;
  // position: fixed;
  width: 100%;
  z-index: 2;
  background-color: #fff;

  .left {
    display: flex;

    .trigger {
      font-size: 18px;
      // line-height: 64px;
      display: inline-block;
      padding: 1px 24px;
      cursor: pointer;
      transition: color 0.3s;
    }

    .Breadcrumb {
      display: flex;
      align-items: center;

      > span {
        display: flex;
        align-items: center;
        flex-wrap: nowrap;

        :global {
          .ant-breadcrumb-link {
            white-space: nowrap;
          }

          .ant-breadcrumb-separator {
            vertical-align: baseline;
            display: flex;
            align-items: center;
          }
        }
      }
    }

    :global {
      .ant-breadcrumb > span:last-child .ant-breadcrumb-separator {
        opacity: 0;
      }
    }
  }

  .right {
    display: flex;
    align-items: center;

    .item {
      height: 100%; // padding: 0 12px;
      padding-right: 8px;
      cursor: pointer; // i {

      //   color: #fff;
      //   font-size: 18px;
      // }
      &:hover {
        background-color: rgba(255, 255, 255, 0.2);
      }
    }

    .ptop2 {
      padding-top: 1px;
    }

    .userBox {
      padding: 0 8px;
      height: 100%;
      display: flex;
      align-items: center;
      cursor: pointer;

      .img {
        width: 24px;
        height: 24px;
        margin-right: 8px;
      }

      .name {
        font-size: 14px;
        color: rgba(0, 0, 0, 0.65);
      }
    }

    :global {
      .ant-divider,
      .ant-divider-vertical {
        height: 1em;
      }
    }
  }
}

.overlay_dropdown {
  :global {
    .ant-dropdown-menu {
      max-height: 200px;
      overflow-y: auto;
    }
  }
}

.menu {
  :global {
    .ant-dropdown-menu-item {
      i {
        margin-right: 0.5rem;
      }
    }
  }
}

.menuItem {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding-left: 17px;
  padding-right: 17px;
  color: @color-base;

  > span > i {
    margin-left: 8px;
    color: @color-primary;
  }
}

.active_item {
  color: @color-title;
}

.down_icon {
  color: #8b8b8b;
}

.menuItem:hover {
  background: @color-primary-hover !important;
}
